package com.dotflat.staffExtend.domain;

import com.dotflat.rest.domain.AreableObjectBase;
import com.fasterxml.jackson.annotation.JsonIgnore;
import lombok.Data;
import lombok.EqualsAndHashCode;
import lombok.NoArgsConstructor;

import javax.persistence.*;

@Entity
@Data
@Table(name = "ex_staff_extend_license" )
@EqualsAndHashCode(callSuper = true)
@NoArgsConstructor
public class StaffExtendLicense extends AreableObjectBase {

    @Column(columnDefinition = "varchar(32)  COMMENT '扩展记录id'")
    private String extendInfoId;

    @ManyToOne
    @JoinColumn(name = "extendInfoId", columnDefinition = "varchar(32) COMMENT '扩展记录id'", insertable = false, updatable = false)
    @JsonIgnore
    private StaffExtendInfo staffExtendInfo;

    @Column(columnDefinition = "varchar(512) COMMENT '图片地址'")
    private String resURL;

    @Column(columnDefinition = "int default 0   COMMENT '证件类型'")
    private Integer licenseType;
}
